package com.jzo2o.factory;

import com.jzo2o.api.customer.AddressBookApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 地址簿服务保护
 *
 * @Author mr.chen
 * @Date 2025/7/6 11:01
 */
@Component
@Slf4j
public class AddressBookFactory implements FallbackFactory<AddressBookApi> {
    @Override
    public AddressBookApi create(Throwable cause) {
        log.error("异常:",cause);
        return null;
    }
}
